﻿namespace ScrumLite.WebUx.Models
{
    using System.Collections.Generic;
    using ScrumLite.Services.Contracts;
    using System.Collections.ObjectModel;

    public class WorkAreasPickerViewData : ContextViewData
    {
        public WorkAreasPickerViewData():this (new Collection<WorkArea>())
        {

        }
        public WorkAreasPickerViewData(Collection<WorkArea> workAreas):this (workAreas, new Collection<WorkArea>())
        {
            
        }
        public WorkAreasPickerViewData(Collection<WorkArea> workAreas, Collection<WorkArea> selectedWorkAreas)
        {
            this.CheckBoxesName = "chkWorkArea";
            this.Title = "WorkAreas";
            this.DisplayMode = WorkAreaDisplayModeType.Vertical;
            this.ShowFilterButton = false;
            this.WorkAreas = workAreas;
            this.SelectedWorkAreas = selectedWorkAreas;
        }

        public Collection<WorkArea> WorkAreas { get; private set; }
        public Collection<WorkArea> SelectedWorkAreas { get; private set; }

        public string CheckBoxesName { get; set; }
        public string Title { get; set; }

        public bool ShowFilterButton { get; set; }

        public WorkAreaDisplayModeType DisplayMode { get; set; }
    }
    
    public enum WorkAreaDisplayModeType
    {
        Vertical,
        Horizontal
    }
}
